//
//  Common.swift
//  weibo10
//
//  Created by 晁岳山 on 15/10/16.
//  Copyright © 2015年 晁岳山. All rights reserved.
//

import UIKit
//相当于oc中的PCH文件

    let mainScreen = UIScreen.mainScreen()
    let StatusCellMargin: CGFloat = 12
    let StatusCellPictureItemMargin: CGFloat = mainScreen.scale * 4
    let StatusCellWidth: CGFloat = 35
    let WBAppearrenceTinkColor = UIColor.orangeColor()
    let WBSwitchRootViewControllerNotifycation = "WBSwitchRootViewControllerNotifycation"
    //照片查看器通知
    let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"
    func delay(time: Double, callBack: () -> ()) {
        dispatch_after(
            dispatch_time(DISPATCH_TIME_NOW, Int64(time * Double (NSEC_PER_SEC))), dispatch_get_main_queue(), { () -> Void in
                callBack()
        })

}